package org.cloud.mall.project.service.impl;

import org.cloud.mall.project.domain.SlEntryHeadListShangjian;
import org.cloud.mall.project.mapper.SlEntryHeadListShangjianMapper;
import org.cloud.mall.project.service.ISlEntryHeadListShangjianService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SlEntryHeadListShangjianServiceImpl implements ISlEntryHeadListShangjianService {

    private static final Logger log = LoggerFactory.getLogger(SlEntryHeadListShangjianServiceImpl.class);

    @Autowired
    private SlEntryHeadListShangjianMapper slEntryHeadListShangjianMapper;

    /**
     * 查询报关表头表体
     *
     * @param entryId 报关表头表体主键
     * @return 报关表头表体
     */
    @Override
    public SlEntryHeadListShangjian selectSlEntryHeadListShangjianByEntryId(String entryId)
    {
        return slEntryHeadListShangjianMapper.selectSlEntryHeadListShangjianByEntryId(entryId);
    }

    /**
     * 查询报关表头表体列表
     *
     * @param slEntryHeadListShangjian 报关表头表体
     * @return 报关表头表体
     */
    @Override
    public List<SlEntryHeadListShangjian> selectSlEntryHeadListShangjianList(SlEntryHeadListShangjian slEntryHeadListShangjian)
    {
        return slEntryHeadListShangjianMapper.selectSlEntryHeadListShangjianList(slEntryHeadListShangjian);
    }

    /**
     * 新增报关表头表体
     *
     * @param slEntryHeadListShangjian 报关表头表体
     * @return 结果
     */
    @Override
    public int insertSlEntryHeadListShangjian(SlEntryHeadListShangjian slEntryHeadListShangjian)
    {
        return slEntryHeadListShangjianMapper.insertSlEntryHeadListShangjian(slEntryHeadListShangjian);
    }

    /**
     * 修改报关表头表体
     *
     * @param slEntryHeadListShangjian 报关表头表体
     * @return 结果
     */
    @Override
    public int updateSlEntryHeadListShangjian(SlEntryHeadListShangjian slEntryHeadListShangjian)
    {
        return slEntryHeadListShangjianMapper.updateSlEntryHeadListShangjian(slEntryHeadListShangjian);
    }

    /**
     * 批量删除报关表头表体
     *
     * @param entryIds 需要删除的报关表头表体主键
     * @return 结果
     */
    @Override
    public int deleteSlEntryHeadListShangjianByEntryIds(String[] entryIds)
    {
        return slEntryHeadListShangjianMapper.deleteSlEntryHeadListShangjianByEntryIds(entryIds);
    }

    /**
     * 删除报关表头表体信息
     *
     * @param entryId 报关表头表体主键
     * @return 结果
     */
    @Override
    public int deleteSlEntryHeadListShangjianByEntryId(String entryId)
    {
        return slEntryHeadListShangjianMapper.deleteSlEntryHeadListShangjianByEntryId(entryId);
    }

}
